<js href="__PUBLIC__/js/jquery.js" />

<script language="JavaScript">

function changevalue(value){
	$("#class2").empty();
	$("#class2").append('<option>选择区</option>');
	var slt=document.getElementById("class2");
	$.get('__APP__/public/selectrows',{rand:Math.random(),garden:value},function(msg){
	
	msg = eval(msg);
			for(var i in msg){	
							  
				   var objOption=document.createElement("OPTION");
				   objOption.value=msg[i].id;
				   objOption.text=msg[i].name;
				   slt.add(objOption);				
			}				
		}
	);	
}
</script>
<select name="garden" id="class1" onChange="changevalue(this.value)" >
<option>选择园</option>
<volist name="gardenname" id="vo">
      <option value="{$vo.id}">{$vo.name}</option>
</volist>
</select>

<select name="district_id" id="class2">
<option>选择区</option>
</select>


